#[test]
fn check_success() {
+ if !is_nightly() {
+ return
+ }
let foo = project("foo")
.file("Cargo.toml", r#"
[package]
"#);
bar.build();
- let expected = if is_nightly() { 0 } else { 101 };
assert_that(foo.cargo_process("check"),
- execs().with_status(expected));
+ execs().with_status(0));
}
#[test]
fn check_fail() {
+ if !is_nightly() {
+ return
+ }
let foo = project("foo")
.file("Cargo.toml", r#"
[package]
#[test]
fn custom_derive() {
+ if !is_nightly() {
+ return
+ }
let foo = project("foo")
.file("Cargo.toml", r#"
[package]
"#);
bar.build();
- let expected = if is_nightly() { 0 } else { 101 };
assert_that(foo.cargo_process("check"),
- execs().with_status(expected));
+ execs().with_status(0));
}
#[test]